package hci;


/**
 * Creates any chating frame (see Factory pattern)
 * 
 * <p>
 * <ul>
 * <li>Project: 	ChatSystemG3</li>
 * <li>Called by: 	ChatGui</li>
 * </ul>
 * </p>
 * 
 * @author COMBES Nicolas - LECHANTRE Arnaud
 */
public class ChatingFrameFactory {
	
	/**
	 * getNewChatingFrame
	 * @param convID identifier of the conversation for which we want to create a frame
	 * @param chatGui core of the GUI of the application
	 * @param usernames array containing the usernames of the local users 
	 * @param localUserName username of the local user
	 * @return a new chating frame for the conversation.
	 */
	public ChatingFrame getNewChatingFrame(int convID, ChatGui chatGui,
			String[] usernames, String localUserName) {
		
		return new ChatingFrame(convID, chatGui, usernames, localUserName);
	}
}
